package cn.modification.mall.ums.mapper;

import cn.modification.mall.pojo.ums.model.User;
import cn.modification.mall.pojo.ums.vo.UserVO;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    UserVO selectUserByUsername(String username);

    void insertUser(User user);

    int selectExistByUsernameOrPhoneOrEmail(@Param("value") String value, @Param("type") String type);

    User selectUserById(@Param("userId") Long userId);

    void updatePasswordById(@Param("userId") Long userId, @Param("newPassword") String encodedNewPassword);
}
